const mongoose = require('mongoose');

const areaIconSchema = new mongoose.Schema({
  imageUrl: { 
    type: String, 
    required: true 
  },
  title: {
    type: String,
    required: true,
    minlength: 2,
    maxlength: 20
  },
  desc1: {
    type: String,
    required: true,
    default: ""
  },
  desc2: {
    type: String,
    required: true,
    default: ""
  }
}, { 
  timestamps: true 
});

module.exports = mongoose.model('areaIcon', areaIconSchema);